package Builder;

public class MealBuilder {
    /*
        创建可能的整体对象. 包含基础对象的构建了已经,
     */

    public Meal prepareVegMeal(){
        // 准备 Veg 餐
        Meal meal = new Meal();
        meal.add(new VegBurger());  // 这里的 VegBurger 已经相当于 爷爷辈的了, 还是能加进来的!
        meal.add(new Coke());

        return meal;
    }

    public Meal prepareNonVegMeal(){
        // 准备 NonVeg 餐
        Meal meal = new Meal();
        meal.add(new ChickenBurger());
        meal.add(new Pepsi());

        return meal;
    }
}
